<?php

namespace app\admin\model\share;

use think\Model;
use traits\model\SoftDelete;

class Share extends Model
{

    use SoftDelete;

    

    // 表名
    protected $name = 'share';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'integer';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = false;
    protected $deleteTime = 'deletetime';






    public function users()
    {
        return $this->belongsTo('app\admin\model\Users', 'user_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }
}
